/**
 * Created by mFramework.
 * User: Mauro
 * Date: 23/05/11
 * Time: 9:40
 */
MF = new Ext.Application({
    name: 'mFramework',
    tabletStartupScreen: 'styles/default/images/tablet_startup.png',
    phoneStartupScreen: 'styles/default/images/phone_startup.png',
    icon: 'styles/default/images/icon.png',
    glossOnIcon: true,
    launch: function() {
        this.views.viewport = new this.views.Viewport();

        this.views.viewport.addListener({
            body: {
                tap: function() { console.log('tapped on body'); }
            },
            interact: function() {
                console.log('interacted with a panel');
            }
        })

        this.views.viewport.on('interact' , function() {
            console.log('interacted with a panel');
        });
        
        this.views.homecard = this.views.viewport.getComponent("home");
    }
});